﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [Table("ProjectArea")]
    public class ProjectArea
    {
        [Key()]
        public Guid ID { get; set; }
        public Guid ProjectID { get; set; }
        public Guid AreaID { get; set; }
        public int Order { get; set; }
        [ForeignKey("AreaID")]
        public virtual Department Department { get; set; }
        [NotMapped()]
        public string Name { get { return Department.Name; } }
    }
}
